<?php
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'网站配置'=>array($this->pre_module_url.'/setting/index'),
	'碎片管理'=>array('blockmenu'),
);
?>
<table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<th width="" class="pl15">菜单名称</th>
		<th width="25%">菜单地址</th>
		<th width="23%">菜单类型</th>
		<th width="29%">操作</th>                                                    
	</tr>
</table>

<!--排序表单 -->
<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>$this->pre_module_url.'/nav/listorder',
	'method'=>'post',
)); ?>
	 <ul class="main_class">
		<?php $this->widget('zii.widgets.CListView', array(
			'dataProvider'=>Nav::model()->getTop(),
			'itemView'=>'_block',
			'emptyText'=>"",
			'template'=>'{items}',
			'enablePagination'=>'false',
			'summaryText'=>'',
			'tagName'=>'ul',
			'itemsCssClass'=>'',
			'htmlOptions'=>array('class'=>'type_list')
		)); 
		?>
	</ul>
<?php $this->endWidget(); ?>

<script type="text/javascript">
$(function(){
	$('.ico_fold').bind('click',function(){
		$(this).parent().parent().next('ul').toggle();
		$(this).toggleClass('ico_del');
		$(this).toggleClass('ico_fold');
	});
});
</script>
